package org.rency.common.sequence.dao;

import java.util.List;

import org.rency.common.sequence.beans.Sequence;

public interface SequenceDao {
	
	public Sequence find(String sequenceName);
	
	public int save(Sequence sequence);
	
	public int delete(String sequenceName);
	
    public List<Sequence> loadAll();

    public Sequence lock(String sequenceName);

    public void update(String sequenceName, Long beforeValue, Long afterValue);
    
    public void createTable();

}